from django.db import models
from utils.models import BaseModel

class Store(BaseModel):
    name = models.CharField(max_length=16, verbose_name='店名')
    addr = models.CharField(max_length=64, verbose_name='地址')
    phone = models.CharField(max_length=11, unique=True,verbose_name='门店电话')
    open = models.CharField(max_length=16, verbose_name='营业时间')

    class Meta:
        db_table = 'tb_store'
        verbose_name_plural = '门店表'

    def __str__(self):
        return self.name